#include "../test_type.h"
#include "../../src/thread/Thread.h"
#include "../../src/tools/ShareApi.h"
#include <iostream>

using namespace LibTools;
using namespace std;

#ifdef TEST_THREAD
DWORD ThreadFunc(void* arg)
{
	cout << "test thread" << endl;
	ShareApi::Sleep(1000);

	return  0;
}

int main()
{
	CThread t(&ThreadFunc);
	t.Detach();
	ShareApi::Sleep(2000);

	cout << "thread exit..." << endl;

	return 0;
}
#endif // TEST_THREAD